package com.itheima.mapper;

import com.itheima.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryMapper {



    Integer save(Category category);

    Integer update(Category category);

    List<Category> page(@Param("start") Integer start,@Param("pageSize") Integer pageSize);

    List<Category> getList(Integer type);

    long count();



    Integer delete(@Param("id") String id);

    Category getById(@Param("id") String id);

    List<Category> clientGetList();
}
